package de.cbf.cam.dsa.entity.edit.item.persister.db4o.client.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import de.cbf.cam.dsa.entity.edit.item.persister.db4o.client.act.ActivatorEntityItem_Db4oClient;
import de.cbf.util.db.db4o.preferences.PreferenceConstantsClient;

/**
 * Class used to initialize default preference values.
 */
public class PrefInit_EntityItem_Db4oClient extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 *
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
		IPreferenceStore store = ActivatorEntityItem_Db4oClient.getDefault().getPreferenceStore();
		//client		
		store.setDefault(PreferenceConstantsClient.P_Db4oDatabaseUser			, "item1");
		store.setDefault(PreferenceConstantsClient.P_Db4oDatabasePW				, "entity1");
		store.setDefault(PreferenceConstantsClient.P_Db4oDatabaseHost			, "localhost");
		store.setDefault(PreferenceConstantsClient.P_Db4oDatabasePort			, 11402);
				
		store.setDefault(PreferenceConstantsClient.P_ActivationDepth					, 15);	
		store.setDefault(PreferenceConstantsClient.P_Db4oTransparentActivationSupport	, true);
		store.setDefault(PreferenceConstantsClient.P_Db4oUUIDSupport					, true);
	}

}
